#coding=utf-8

def bubbleSort(data):
    n = len(data)
 
    for i in range(n):
        for j in range(0, n-i-1):
 
            if data[j] > data[j+1] :
                data[j], data[j+1] = data[j+1], data[j]
 
data = [64, 34, 25, 12, 22, 11, 90]
 
bubbleSort(data)
 
print ("排序后的数组:")
for i in range(len(data)):
    print ("%d" %data[i])